<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="校本资源" name="1"> </el-tab-pane>
      <el-tab-pane label="校外资源" name="2"> </el-tab-pane>
      <Search :sourceType="activeName" />
      <List :sourceType="activeName" />
      <Add :sourceType="activeName" />
    </el-tabs>
  </div>
</template>
<script>
import Search from './Search.vue'
import List from './List.vue'
import Add from './Add.vue'
export default {
  data() {
    return {
      activeName: '1',
    }
  },
  components: {
    List,
    Search,
    Add,
  },
}
</script>
